import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
	  // mode: 'history',
  	routes: [
  		{
        path: '/',
        redirect: '/turnPage',
        component: () => import('@/packages/turnPage'),
      },
      {
        path:'/hospitalSalesAnalysisSeller',
        name:'hospitalSalesAnalysisSeller',
        component:()=>import('../packages/merits/hospitalSalesAnalysisSeller'),
        meta:{keepAlive:true}


      },

      {
        path:'/hospitalTwoSeller',
        name:'hospitalTwoSeller',
        component:()=>import('../packages/merits/hospitalTwoSeller')
      },

	    {
	      path: '/areaList',
	      name: 'areaList',
        component: () => import('@/packages/areaList'),
        meta:{keepAlive:true}


      },
      {
	      path: '/areaListSeller',
        name: 'areaListSeller',
        meta:{keepAlive:true},

        component: () => import('@/packages/areaListSeller')

      },
      {
        path:'/hospitalSalesAnalysis',
        component: () => import('../packages/merits/hospitalSalesAnalysis'),
        meta:{keepAlive:true}

      },
	    {
	      path: '/hospList',
	      name: 'hospList',
        component: () => import('../packages/hospList'),
        meta:{keepAlive:true}


      },
      {
	      path: '/commonDetailSellerTwo',
	      name: 'commonDetailSellerTwo',
	      component: () => import('../packages/commonDetailSellerTwo')
      },
      {
	      path: '/hospListSeller',
	      name: 'hospListSeller',
        component: () => import('../packages/hospListSeller'),
        meta:{keepAlive:true}


	    },
      {
        path: '/compList',
        name: 'compList',
        component: () => import('../packages/compList'),
        meta:{keepAlive:true}


      },
      {
        path: '/commonDetail',
        name: 'commonDetail',
        component: () => import('../packages/commonDetail')
      },
      {
        path: '/compListSeller',
        name: 'compListSeller',
        component: () => import('../packages/compListSeller'),
        meta:{keepAlive:true}


      },
      {
        path: '/commonDetailSeller',
        name: 'commonDetailSeller',
        component: () => import('../packages/commonDetailSeller')
      },
      {
        path: '/city',
        name: 'city',
        component: () => import('../components/HelloWorld')
      },
      {
        path:'/annualSales',
        name:'annualSales',
        component: () => import('../packages/annualSales')
      },
      {
        path:'/annualSalesSeller',
        name:'annualSalesSeller',
        component: () => import('../packages/annualSalesSeller')
      },
      {
        path: '/turnPage',
        name: 'turnPage',
        component: () => import('../packages/turnPage')
      },
      {
        path: '/faith',
        name: 'faith',
        component: () => import('../packages/faith/faith'),
        meta:{keepAlive:true}
      },
      // {
      //   path: '/linechart11',
      //   name: 'linechart1',
      //   component: () => import('../packages/faith/components/linechart1')
      // },

      {
        path: '/faithdetail',
        name: 'faithdetail',
        component: () => import('../packages/faith/faithdetail')
      },
      {
        path: '/merits',
        name: 'merits',
        component: () => import('../packages/merits/merits')

      },
      {
        path: '/meritsdetail',
        name: 'meritsdetail',
        component: () => import('../packages/merits/meritsdetail'),
        redirect:'meritsdetail/sell',
        children:[
          {path:'sell',name:'detailSell',component: () => import('../packages/merits/detailsell')},
          {path:'return',name:'detailReturn',component: () => import('../packages/merits/detailreturn')},
          {path:'invoice',name:'detailInvoice',component: () => import('../packages/merits/detailInvoice')}
        ]
      },
      {
        path:'/hospitalTwo',
        name:'hospitalTwo',
        component:()=>import('../packages/merits/hospitalTwo')
      },
      {
        path:'/meritsSell',
        name:'meritsSell',
        component:()=>import('../packages/merits/meritsSell')

      },
      {
        path:'/meritsSellDetail',
        name:'meritsSellDetail',
        component:()=>import('../packages/merits/meritsSellDetail')
      },
      {
        path:'/supervision',
        name:'supervision',
        component:()=>import('../packages/supervision/supervision')
      },
	]
})
